
package biblio.bean;


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;


/**
 * Transport object for entity book.
 * @author mephisto
 */
@ManagedBean
@RequestScoped
public class BookBean
{
    public String getISBN()
    {
        return ISBN;
    }

    public void setISBN(String ISBN)
    {
        this.ISBN = ISBN;
    }

    public Set<String> getAuthors()
    {
        return authors;
    }

    public void setAuthors(Set<String> authors)
    {
        this.authors = authors;
    }

    public String getCategoryName()
    {
        return categoryName;
    }

    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getPagesNumber()
    {
        return pagesNumber;
    }

    public void setPagesNumber(int pagesNumber)
    {
        this.pagesNumber = pagesNumber;
    }

    public Date getPublishingDate()
    {
        return publishingDate;
    }

    public void setPublishingDate(Date publishingDate)
    {
        this.publishingDate = publishingDate;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public void clear()
    {
        id = 0;
        title = "";
        pagesNumber = 0;
        ISBN = "";
        publishingDate = null;
        authors = null;
        authors = new HashSet<String>(0);
        categoryName = "";
    }

    
    private int id;
    private String title;
    private int pagesNumber;
    private String ISBN;
    private Date publishingDate;
    private Set<String> authors = new HashSet<String>(0);
    private String categoryName;
}
